#!/bin/bash

#------------------------------------------------------------------------------
#Filename:	74813-findname.sh
#Version:	1.1
#Date:	        2013/08/02
#Author:	yuanhui.shi
#Email:	        yuanhui.shi@cs2c.com.cn
#Summary:	02.01系统核心功能-06基础命令行工具-14find工具-03find按文件名称查找文件
#Notes:	        考察find命令是否正确
#Copyright:	China Standard Software Co.,Ltd.
#History:
#	        Version 1.0,2013/08/02
#	        -The first one
#	        Version 1.1,2013/09/09
#	        -Modify the script to satisfy the shell standard
#------------------------------------------------------------------------------


PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH

source ../../lib/Echo.sh

function CleanData ()
{
  EchoInfo "74813-findname.sh执行完毕"
}

trap "CleanData" EXIT

#test "`find / -name grub.conf |wc -l`" == 3 
test `find /etc -name inittab | wc -l` -ge 1
EchoResult  "find命令按照名字查找是正确的"
